package pojo;

import jakarta.persistence.Column;

/**
 * @Author:fhx
 * @Date:2024/4/19
 * @Project:BrandWork
 */

public class Brand {
    private Integer id;
    private String brandName;
    private String companyName;
    private Integer ordered;
    private String description;
    private Integer status;

    public Brand() {
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBrandName() {
        return this.brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getCompanyName() {
        return this.companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getOrdered() {
        return this.ordered;
    }

    public void setOrdered(Integer ordered) {
        this.ordered = ordered;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStatus() {
        return this.status;
    }

    public String getStatusStr() {
        if (this.status == null) {
            return "未知";
        } else {
            return this.status == 0 ? "禁用" : "启用";
        }
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String toString() {
        return "Brand{id=" + this.id + ", brandName='" + this.brandName + '\'' + ", companyName='" + this.companyName + '\'' + ", ordered=" + this.ordered + ", description='" + this.description + '\'' + ", status=" + this.status + '}';
    }
}
